let PREFIX_LOGIC = process.env.VUE_APP_API_URL_LOGICMODEL;
let PREFIX_PHYSIC = process.env.VUE_APP_API_URL_PHYSICMODEL;
const logicModel = {
  getModelList:PREFIX_LOGIC+"/logicalModel/logicalModelPageList", //逻辑模型列表
  getSubjectList: PREFIX_LOGIC+'/theme/themeTree',//主题列表
  createLogicModel:PREFIX_LOGIC+'/logicalModel/addLogicalModel',//创建模型
  editLogicModel:PREFIX_LOGIC+'/logicalModel/updateLogicalModel',//编辑模型
  getModelPropertyList: PREFIX_LOGIC+'/logicalModelField/logicalModelFieldManagement',  //模型属性列表
  saveModelProps: PREFIX_LOGIC+"/logicalModelField/addLogicalModelFields", //保存模型属性列表
  publishModel: PREFIX_LOGIC+"/logicalModel/editLogicalModelStatus", //发布，废止模型
  deleteModel: PREFIX_LOGIC+"/deleteModel", //删除模型--所有版本
  deleteModelVersion: PREFIX_LOGIC+"/logicalModel/deleteLogicalModel", //删除模型--所在版本
  dataTypeList: PREFIX_LOGIC+"/dropDown/getDropDownDataList", // 数据类型列表
  getModelRelationList:PREFIX_LOGIC+'/logicalModel/getLogicalModelRelation',//逻辑模型关系列表
  getModelsList:PREFIX_LOGIC+'/dropDown/getDropDownDataList',//获取模型列表
  getTargetModelProps:PREFIX_LOGIC+'/logicalModel/logicalModelFieldRelation',//获取目标模型属性列表
  addLogicalModelRelation:PREFIX_LOGIC+'/logicalModel/addLogicalModelRelation',//新增逻辑模型关系
  deleteLogicalModelRelation:PREFIX_LOGIC+'/logicalModel/deleteLogicalModelRelation', //删除逻辑模型关系
  editLogicalModelRelation:PREFIX_LOGIC+'/logicalModel/editLogicalModelRelation' //编辑逻辑模型关系
 
};
const physicModel = {
  getPYModelPropertyList:PREFIX_PHYSIC+'/physicalModel/managePhysicalModel', //获取物理模型属性列表
  getPhysicModelList: PREFIX_PHYSIC+"/physicalModel/getModelList", // 物理模型列表
  getBaseDataList: PREFIX_PHYSIC+"/dropDown/getDropDownDataList", // 数据库列表
  getSystemPropsList:PREFIX_PHYSIC+'/physicalModel/managePhysicalModel', //系统属性列表
  dataTypeList:PREFIX_PHYSIC+'/physicalModel/filedType',// 数据类型列表
  createPhysicModel:PREFIX_PHYSIC+'/physicalModel/addPhysicalModel',//创建物理模型
  editPhysicalModel:PREFIX_PHYSIC+'/physicalModel/editPhysicalModel',//编辑物理模型
  savePhysicModelProps:PREFIX_PHYSIC+'/physicalModel/savePhysicalModelFiled',//保存物理模型属性列表
  startPhysicModel:PREFIX_PHYSIC+'/physicalModel/enablePhysicalModel',//开启物理模型
  disablePhysicalModel:PREFIX_PHYSIC+'/physicalModel/disablePhysicalModel',//停用物理模型
  deletePhysicModel:PREFIX_PHYSIC+'/physicalModel/deletePhysicalModel',//删除物理模型
  getModelRelationList:PREFIX_PHYSIC+'/logicalModel/getLogicalModelRelation',//逻辑模型关系列表
  getModelsList:PREFIX_PHYSIC+'/dropDown/getDropDownDataList',//获取模型列表
  getTargetModelProps:PREFIX_PHYSIC+'/logicalModel/logicalModelFieldRelation',//获取目标模型属性列表
  addLogicalModelRelation:PREFIX_PHYSIC+'/logicalModel/addLogicalModelRelation', //新增逻辑模型关系
  deleteLogicalModelRelation:PREFIX_PHYSIC+'/logicalModel/deleteLogicalModelRelation',//删除逻辑模型关系
  editLogicalModelRelation:PREFIX_PHYSIC+'/logicalModel/editLogicalModelRelation',//编辑逻辑模型关系
  beLinkedPhysicalModel:PREFIX_PHYSIC+'/logicalModel/beLinkedPhysicalModel',//关联物理模型列表
  saveModelProps:PREFIX_PHYSIC+"/logicalModelField/addLogicalModelFields", //保存模型属性列表
}
// for (let key in logicModel) {
//   logicModel[key] = "/logicModel" + logicModel[key];
// }
// for (let key in physicModel) {
//   physicModel[key] = "/physicModel" + physicModel[key];
// }

export default {
  logicModel,physicModel
};
